<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <meta http-equiv="X-UA-Compatible" content="ie=edge">
    <title>Document</title>
</head>
<body>
    <script>
        var arr=[1,2,3,4];
        arr.push(5);
        // push 给数组的最末尾添加一个值。
        // splice(startNumber,number)从下标第几开始删除，删除多少位
        arr.splice(1,1)
        </script>
</body>
</html>